package com.sg.model.base.po;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import lombok.experimental.Accessors;

import com.sg.framework.common.po.BaseEntity;
import jakarta.validation.constraints.NotNull;

import java.io.Serial;
import java.io.Serializable;
import java.io.Serial;
import java.util.Date;

/**
 * @author xxx
 */
@Data
@Accessors(chain = true)
@TableName("oms_framework_managed_dept")  //1-2-14管理的部门表
public class ManagedDept implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    /**
     * 管理的部门ID
     */
    @TableId(value = "managed_dep_id", type = IdType.ASSIGN_UUID)
    @NotNull(message = "managedDepId不能为空")
    private String managedDepId;
    /**
     * 组织ID
     */
    @TableField(value = "organization_id")
    @NotNull(message = "组织ID不能为空")
    @Schema(description = "组织ID")
    private String organizationId;
    /**
     * 部门ID
     */
    @TableField(value = "dept_id")
    @NotNull(message = "部门ID不能为空")
    @Schema(description = "部门ID")
    private String deptId;
    /**
     * 角色人员ID
     */
    @TableField(value = "role_member_id")
    @NotNull(message = "角色人员ID不能为空")
    @Schema(description = "角色人员ID")
    private String roleMemberId;
    /**
     * 身份人员ID
     */
    @TableField(value = "original_role_member_id")
    @NotNull(message = "身份人员ID不能为空")
    @Schema(description = "身份人员ID")
    private String originalRoleMemberId;
    /**
     * 创建于空间ID
     */
    @TableField(value = "space_id")
    @NotNull(message = "创建于空间ID不能为空")
    @Schema(description = "创建于空间ID")
    private String spaceId;
    /**
     * 创建于联盟应用ID
     */
    @TableField(value = "app_id")
    @NotNull(message = "创建于联盟应用ID不能为空")
    @Schema(description = "创建于联盟应用ID")
    private String appId;
    /**
     * 操作人就职记录ID
     */
    @TableField(value = "operation_induction_id")
    @NotNull(message = "操作人就职记录ID不能为空")
    @Schema(description = "操作人就职记录ID")
    private String operationInductionId;
    /**
     * 创建人就职记录ID
     */
    @TableField(value = "create_induction_id")
    @NotNull(message = "创建人就职记录ID不能为空")
    @Schema(description = "创建人就职记录ID")
    private String createInductionId;
    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    @NotNull(message = "操作时间不能为空")
    @Schema(description = "操作时间")
    private Date operateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @NotNull(message = "创建时间不能为空")
    @Schema(description = "创建时间")
    private Date createTime;
}
